%%%%%this code is just used to get data sets
clear;
addpath('F:/GRIP17/Blind-PRNUClustering TIFS/Code/Utility');
addpath('F:/GRIP17/Blind-PRNUClustering TIFS/Code/Utility/bm3dFilter');
denoising_function = 'bm3d'; %'none';
crop_size = [512,512];%[Inf,Inf]; %[512,512];
crop_location = 'center'; %'upper-left'; 
in_memory = false; %true
filename = {'a','a1'};%{'Kodak_M1063_1','Nikon_CoolPixS710_0'};%,'Praktica_DCZ59_0','Samsung_L74wide_0','Samsung_NV15_0'};
l = length(filename);
images_name = {};
gtruth = [];      
for i = 1:l
    addpath(strcat('F:/Dresden/',filename{i}));
    fileFolder=fullfile('F:/Dresden/',filename{i});
    dirOutput=dir(fullfile(fileFolder,'*.JPG'));
    fileNames={dirOutput.name};
    if i == 1
        images_name = fileNames;
    else
        images_name = [images_name,fileNames];
    end
    gtruth = [gtruth;i*ones(length(fileNames),1)];
end

C = ResidualInnerProductMatrix(images_name,denoising_function,crop_size,crop_location,in_memory);
